.class public Lcom/example/m6shop/PayBalanceAcivity;
.super Landroid/app/Activity;
.source "PayBalanceAcivity.java"


# annotations
.annotation build Landroid/annotation/SuppressLint;
    value = {
        "HandlerLeak"
    }
.end annotation

.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/example/m6shop/PayBalanceAcivity$mOnclistener;,
        Lcom/example/m6shop/PayBalanceAcivity$selectOnclistener;
    }
.end annotation


# static fields
.field public static final acoutpay_flag:I = 0x64

.field public static final aplipay_flag:I = 0x63

.field public static h:Landroid/os/Handler;


# instance fields
.field private acount_choose_icon:Landroid/widget/ImageView;

.field private acountdata:Lorg/json/JSONObject;

.field private acoutpaylay:Landroid/widget/LinearLayout;

.field private activities:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Landroid/app/Activity;",
            ">;"
        }
    .end annotation
.end field

.field private alipay_choose_icon:Landroid/widget/ImageView;

.field private alipaylay:Landroid/widget/LinearLayout;

.field api:Lcom/tencent/mm/sdk/openapi/IWXAPI;

.field private choice_pay_name:Ljava/lang/String;

.field private closebtn:Landroid/widget/ImageView;

.field private context:Landroid/content/Context;

.field private m:Lmyapp/MyApp;

.field private order_id:Ljava/lang/String;

.field private paytype:Ljava/lang/String;

.field private taodata:Lorg/json/JSONObject;

.field private tv_acount_cost:Landroid/widget/TextView;

.field private tv_also_pay_money:Landroid/widget/TextView;

.field private tv_order_money:Landroid/widget/TextView;

.field private tv_sure_pay:Landroid/widget/TextView;

.field private waitpay_cost:Ljava/lang/String;

.field private weixin_choose_icon:Landroid/widget/ImageView;

.field private weixindata:Lorg/json/JSONObject;

.field private weixinpaylay:Landroid/widget/LinearLayout;


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 49
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    return-void
.end method

.method static synthetic access$0(Lcom/example/m6shop/PayBalanceAcivity;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 55
    iget-object v0, p0, Lcom/example/m6shop/PayBalanceAcivity;->context:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$1(Lcom/example/m6shop/PayBalanceAcivity;)Landroid/widget/ImageView;
    .locals 1

    .prologue
    .line 60
    iget-object v0, p0, Lcom/example/m6shop/PayBalanceAcivity;->alipay_choose_icon:Landroid/widget/ImageView;

    return-object v0
.end method

.method static synthetic access$2(Lcom/example/m6shop/PayBalanceAcivity;)Landroid/widget/ImageView;
    .locals 1

    .prologue
    .line 60
    iget-object v0, p0, Lcom/example/m6shop/PayBalanceAcivity;->acount_choose_icon:Landroid/widget/ImageView;

    return-object v0
.end method

.method static synthetic access$3(Lcom/example/m6shop/PayBalanceAcivity;)Landroid/widget/ImageView;
    .locals 1

    .prologue
    .line 61
    iget-object v0, p0, Lcom/example/m6shop/PayBalanceAcivity;->weixin_choose_icon:Landroid/widget/ImageView;

    return-object v0
.end method

.method static synthetic access$4(Lcom/example/m6shop/PayBalanceAcivity;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 68
    iput-object p1, p0, Lcom/example/m6shop/PayBalanceAcivity;->choice_pay_name:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$5(Lcom/example/m6shop/PayBalanceAcivity;)V
    .locals 0

    .prologue
    .line 284
    invoke-direct {p0}, Lcom/example/m6shop/PayBalanceAcivity;->gotopay()V

    return-void
.end method

.method static synthetic access$6(Lcom/example/m6shop/PayBalanceAcivity;)Lmyapp/MyApp;
    .locals 1

    .prologue
    .line 52
    iget-object v0, p0, Lcom/example/m6shop/PayBalanceAcivity;->m:Lmyapp/MyApp;

    return-object v0
.end method

.method static synthetic access$7(Lcom/example/m6shop/PayBalanceAcivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 64
    iget-object v0, p0, Lcom/example/m6shop/PayBalanceAcivity;->order_id:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$8(Lcom/example/m6shop/PayBalanceAcivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 65
    iget-object v0, p0, Lcom/example/m6shop/PayBalanceAcivity;->paytype:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$9(Lcom/example/m6shop/PayBalanceAcivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 66
    iget-object v0, p0, Lcom/example/m6shop/PayBalanceAcivity;->waitpay_cost:Ljava/lang/String;

    return-object v0
.end method

.method private gotopay()V
    .locals 17

    .prologue
    .line 285
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/m6shop/PayBalanceAcivity;->tv_sure_pay:Landroid/widget/TextView;

    const/4 v14, 0x0

    invoke-virtual {v13, v14}, Landroid/widget/TextView;->setClickable(Z)V

    .line 286
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/m6shop/PayBalanceAcivity;->choice_pay_name:Ljava/lang/String;

    const-string v14, ""

    invoke-virtual {v13, v14}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v13

    if-eqz v13, :cond_0

    .line 287
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/m6shop/PayBalanceAcivity;->context:Landroid/content/Context;

    const-string v14, "\u4fe1\u606f\u83b7\u53d6\u7ed3\u679c"

    const-string v15, "\u8bf7\u9009\u62e9\u652f\u4ed8\u65b9\u5f0f"

    invoke-static {v13, v14, v15}, Lmyclass/Util;->alertdialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 386
    :goto_0
    return-void

    .line 289
    :cond_0
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/m6shop/PayBalanceAcivity;->choice_pay_name:Ljava/lang/String;

    const-string v14, "alipay"

    invoke-virtual {v13, v14}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v13

    if-eqz v13, :cond_1

    .line 290
    const-string v12, ""

    .line 292
    .local v12, "tempstr":Ljava/lang/String;
    :try_start_0
    new-instance v1, Lcom/wmr/aplipay/AplipayConfig;

    invoke-direct {v1}, Lcom/wmr/aplipay/AplipayConfig;-><init>()V

    .line 294
    .local v1, "test":Lcom/wmr/aplipay/AplipayConfig;
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/m6shop/PayBalanceAcivity;->taodata:Lorg/json/JSONObject;

    const-string v14, "PARTNER"

    invoke-virtual {v13, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v13}, Ljava/lang/String;->toString()Ljava/lang/String;

    move-result-object v2

    .line 295
    .local v2, "PARTNER":Ljava/lang/String;
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/m6shop/PayBalanceAcivity;->taodata:Lorg/json/JSONObject;

    const-string v14, "SELLER"

    invoke-virtual {v13, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v13}, Ljava/lang/String;->toString()Ljava/lang/String;

    move-result-object v3

    .line 296
    .local v3, "SELLER":Ljava/lang/String;
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/m6shop/PayBalanceAcivity;->taodata:Lorg/json/JSONObject;

    const-string v14, "RSA_PRIVATE"

    invoke-virtual {v13, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v13}, Ljava/lang/String;->toString()Ljava/lang/String;

    move-result-object v4

    .line 297
    .local v4, "RSA_PRIVATE":Ljava/lang/String;
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/m6shop/PayBalanceAcivity;->taodata:Lorg/json/JSONObject;

    const-string v14, "RSA_PUBLIC"

    invoke-virtual {v13, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v13}, Ljava/lang/String;->toString()Ljava/lang/String;

    move-result-object v5

    .line 298
    .local v5, "RSA_PUBLIC":Ljava/lang/String;
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/m6shop/PayBalanceAcivity;->taodata:Lorg/json/JSONObject;

    const-string v14, "Notify_Url"

    invoke-virtual {v13, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v13}, Ljava/lang/String;->toString()Ljava/lang/String;

    move-result-object v6

    .line 300
    .local v6, "Notify_Url":Ljava/lang/String;
    invoke-virtual/range {v1 .. v6}, Lcom/wmr/aplipay/AplipayConfig;->setPARTNER(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 301
    const-string v13, "\u652f\u4ed8\u6570\u636e"

    new-instance v14, Ljava/lang/StringBuilder;

    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/example/m6shop/PayBalanceAcivity;->taodata:Lorg/json/JSONObject;

    const-string v16, "wmrid"

    invoke-virtual/range {v15 .. v16}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v15

    invoke-virtual {v15}, Ljava/lang/String;->toString()Ljava/lang/String;

    move-result-object v15

    invoke-static {v15}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v15

    invoke-direct {v14, v15}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v15, "-----"

    invoke-virtual {v14, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v14

    .line 302
    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/example/m6shop/PayBalanceAcivity;->taodata:Lorg/json/JSONObject;

    const-string v16, "paytype"

    invoke-virtual/range {v15 .. v16}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v15

    invoke-virtual {v15}, Ljava/lang/String;->toString()Ljava/lang/String;

    move-result-object v15

    invoke-virtual {v14, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v14

    const-string v15, "-------"

    invoke-virtual {v14, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v14

    .line 303
    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/example/m6shop/PayBalanceAcivity;->taodata:Lorg/json/JSONObject;

    const-string v16, "allcost"

    invoke-virtual/range {v15 .. v16}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v15

    invoke-virtual {v15}, Ljava/lang/String;->toString()Ljava/lang/String;

    move-result-object v15

    invoke-virtual {v14, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v14

    invoke-virtual {v14}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v14

    .line 301
    invoke-static {v13, v14}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 304
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/m6shop/PayBalanceAcivity;->taodata:Lorg/json/JSONObject;

    const-string v14, "wmrid"

    invoke-virtual {v13, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v13}, Ljava/lang/String;->toString()Ljava/lang/String;

    move-result-object v13

    .line 305
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/m6shop/PayBalanceAcivity;->taodata:Lorg/json/JSONObject;

    const-string v15, "paytype"

    invoke-virtual {v14, v15}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v14}, Ljava/lang/String;->toString()Ljava/lang/String;

    move-result-object v14

    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/example/m6shop/PayBalanceAcivity;->taodata:Lorg/json/JSONObject;

    .line 306
    const-string v16, "allcost"

    invoke-virtual/range {v15 .. v16}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v15

    invoke-virtual {v15}, Ljava/lang/String;->toString()Ljava/lang/String;

    move-result-object v15

    .line 304
    invoke-virtual {v1, v13, v14, v15}, Lcom/wmr/aplipay/AplipayConfig;->OrderStr(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v12

    .line 314
    .end local v1    # "test":Lcom/wmr/aplipay/AplipayConfig;
    .end local v2    # "PARTNER":Ljava/lang/String;
    .end local v3    # "SELLER":Ljava/lang/String;
    .end local v4    # "RSA_PRIVATE":Ljava/lang/String;
    .end local v5    # "RSA_PUBLIC":Ljava/lang/String;
    .end local v6    # "Notify_Url":Ljava/lang/String;
    :goto_1
    move-object v8, v12

    .line 315
    .local v8, "payInfo":Ljava/lang/String;
    new-instance v9, Lcom/example/m6shop/PayBalanceAcivity$2;

    move-object/from16 v0, p0

    invoke-direct {v9, v0, v8}, Lcom/example/m6shop/PayBalanceAcivity$2;-><init>(Lcom/example/m6shop/PayBalanceAcivity;Ljava/lang/String;)V

    .line 332
    .local v9, "payRunnable":Ljava/lang/Runnable;
    new-instance v10, Ljava/lang/Thread;

    invoke-direct {v10, v9}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    .line 333
    .local v10, "payThread":Ljava/lang/Thread;
    invoke-virtual {v10}, Ljava/lang/Thread;->start()V

    goto/16 :goto_0

    .line 309
    .end local v8    # "payInfo":Ljava/lang/String;
    .end local v9    # "payRunnable":Ljava/lang/Runnable;
    .end local v10    # "payThread":Ljava/lang/Thread;
    :catch_0
    move-exception v7

    .line 311
    .local v7, "e":Lorg/json/JSONException;
    invoke-virtual {v7}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_1

    .line 335
    .end local v7    # "e":Lorg/json/JSONException;
    .end local v12    # "tempstr":Ljava/lang/String;
    :cond_1
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/m6shop/PayBalanceAcivity;->choice_pay_name:Ljava/lang/String;

    const-string v14, "weixinpay"

    invoke-virtual {v13, v14}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v13

    if-eqz v13, :cond_2

    .line 337
    :try_start_1
    new-instance v11, Lcom/tencent/mm/sdk/modelpay/PayReq;

    invoke-direct {v11}, Lcom/tencent/mm/sdk/modelpay/PayReq;-><init>()V

    .line 339
    .local v11, "req":Lcom/tencent/mm/sdk/modelpay/PayReq;
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/m6shop/PayBalanceAcivity;->weixindata:Lorg/json/JSONObject;

    const-string v14, "appid"

    invoke-virtual {v13, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    iput-object v13, v11, Lcom/tencent/mm/sdk/modelpay/PayReq;->appId:Ljava/lang/String;

    .line 340
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/m6shop/PayBalanceAcivity;->weixindata:Lorg/json/JSONObject;

    const-string v14, "partnerid"

    invoke-virtual {v13, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    iput-object v13, v11, Lcom/tencent/mm/sdk/modelpay/PayReq;->partnerId:Ljava/lang/String;

    .line 341
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/m6shop/PayBalanceAcivity;->weixindata:Lorg/json/JSONObject;

    const-string v14, "prepayid"

    invoke-virtual {v13, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    iput-object v13, v11, Lcom/tencent/mm/sdk/modelpay/PayReq;->prepayId:Ljava/lang/String;

    .line 342
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/m6shop/PayBalanceAcivity;->weixindata:Lorg/json/JSONObject;

    const-string v14, "noncestr"

    invoke-virtual {v13, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    iput-object v13, v11, Lcom/tencent/mm/sdk/modelpay/PayReq;->nonceStr:Ljava/lang/String;

    .line 343
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/m6shop/PayBalanceAcivity;->weixindata:Lorg/json/JSONObject;

    const-string v14, "timestamp"

    invoke-virtual {v13, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    iput-object v13, v11, Lcom/tencent/mm/sdk/modelpay/PayReq;->timeStamp:Ljava/lang/String;

    .line 344
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/m6shop/PayBalanceAcivity;->weixindata:Lorg/json/JSONObject;

    const-string v14, "package"

    invoke-virtual {v13, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    iput-object v13, v11, Lcom/tencent/mm/sdk/modelpay/PayReq;->packageValue:Ljava/lang/String;

    .line 345
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/m6shop/PayBalanceAcivity;->weixindata:Lorg/json/JSONObject;

    const-string v14, "sign"

    invoke-virtual {v13, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    iput-object v13, v11, Lcom/tencent/mm/sdk/modelpay/PayReq;->sign:Ljava/lang/String;

    .line 347
    const-string v13, "\u6b63\u5728\u8c03\u8d77\u652f\u4ed8..."

    .line 348
    const/4 v14, 0x0

    .line 347
    move-object/from16 v0, p0

    invoke-static {v0, v13, v14}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v13

    .line 348
    invoke-virtual {v13}, Landroid/widget/Toast;->show()V

    .line 350
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/m6shop/PayBalanceAcivity;->api:Lcom/tencent/mm/sdk/openapi/IWXAPI;

    invoke-interface {v13, v11}, Lcom/tencent/mm/sdk/openapi/IWXAPI;->sendReq(Lcom/tencent/mm/sdk/modelbase/BaseReq;)Z
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_1

    goto/16 :goto_0

    .line 353
    .end local v11    # "req":Lcom/tencent/mm/sdk/modelpay/PayReq;
    :catch_1
    move-exception v13

    goto/16 :goto_0

    .line 378
    :cond_2
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/m6shop/PayBalanceAcivity;->choice_pay_name:Ljava/lang/String;

    const-string v14, "acountpay"

    invoke-virtual {v13, v14}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v13

    if-eqz v13, :cond_3

    .line 380
    invoke-virtual/range {p0 .. p0}, Lcom/example/m6shop/PayBalanceAcivity;->aouctpay()Z

    goto/16 :goto_0

    .line 383
    :cond_3
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/m6shop/PayBalanceAcivity;->context:Landroid/content/Context;

    const-string v14, "\u4fe1\u606f\u83b7\u53d6\u7ed3\u679c"

    const-string v15, "\u672a\u5b9a\u4e49\u7684\u652f\u4ed8\u65b9\u5f0f"

    invoke-static {v13, v14, v15}, Lmyclass/Util;->alertdialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto/16 :goto_0
.end method

.method private initView()V
    .locals 4

    .prologue
    const/16 v3, 0x8

    const/4 v2, 0x0

    .line 214
    const v0, 0x7f07000c

    invoke-virtual {p0, v0}, Lcom/example/m6shop/PayBalanceAcivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/example/m6shop/PayBalanceAcivity;->closebtn:Landroid/widget/ImageView;

    .line 215
    const v0, 0x7f070018

    invoke-virtual {p0, v0}, Lcom/example/m6shop/PayBalanceAcivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/example/m6shop/PayBalanceAcivity;->alipay_choose_icon:Landroid/widget/ImageView;

    .line 216
    const v0, 0x7f07001e

    invoke-virtual {p0, v0}, Lcom/example/m6shop/PayBalanceAcivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/example/m6shop/PayBalanceAcivity;->acount_choose_icon:Landroid/widget/ImageView;

    .line 217
    const v0, 0x7f07001a

    invoke-virtual {p0, v0}, Lcom/example/m6shop/PayBalanceAcivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/example/m6shop/PayBalanceAcivity;->weixin_choose_icon:Landroid/widget/ImageView;

    .line 219
    const v0, 0x7f070017

    invoke-virtual {p0, v0}, Lcom/example/m6shop/PayBalanceAcivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/example/m6shop/PayBalanceAcivity;->alipaylay:Landroid/widget/LinearLayout;

    .line 220
    const v0, 0x7f070019

    invoke-virtual {p0, v0}, Lcom/example/m6shop/PayBalanceAcivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/example/m6shop/PayBalanceAcivity;->weixinpaylay:Landroid/widget/LinearLayout;

    .line 221
    const v0, 0x7f07001b

    invoke-virtual {p0, v0}, Lcom/example/m6shop/PayBalanceAcivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/example/m6shop/PayBalanceAcivity;->acoutpaylay:Landroid/widget/LinearLayout;

    .line 223
    iget-object v0, p0, Lcom/example/m6shop/PayBalanceAcivity;->alipaylay:Landroid/widget/LinearLayout;

    new-instance v1, Lcom/example/m6shop/PayBalanceAcivity$selectOnclistener;

    invoke-direct {v1, p0, v2}, Lcom/example/m6shop/PayBalanceAcivity$selectOnclistener;-><init>(Lcom/example/m6shop/PayBalanceAcivity;Lcom/example/m6shop/PayBalanceAcivity$selectOnclistener;)V

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 224
    iget-object v0, p0, Lcom/example/m6shop/PayBalanceAcivity;->weixinpaylay:Landroid/widget/LinearLayout;

    new-instance v1, Lcom/example/m6shop/PayBalanceAcivity$selectOnclistener;

    invoke-direct {v1, p0, v2}, Lcom/example/m6shop/PayBalanceAcivity$selectOnclistener;-><init>(Lcom/example/m6shop/PayBalanceAcivity;Lcom/example/m6shop/PayBalanceAcivity$selectOnclistener;)V

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 225
    iget-object v0, p0, Lcom/example/m6shop/PayBalanceAcivity;->acoutpaylay:Landroid/widget/LinearLayout;

    new-instance v1, Lcom/example/m6shop/PayBalanceAcivity$selectOnclistener;

    invoke-direct {v1, p0, v2}, Lcom/example/m6shop/PayBalanceAcivity$selectOnclistener;-><init>(Lcom/example/m6shop/PayBalanceAcivity;Lcom/example/m6shop/PayBalanceAcivity$selectOnclistener;)V

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 227
    const v0, 0x7f070014

    invoke-virtual {p0, v0}, Lcom/example/m6shop/PayBalanceAcivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/example/m6shop/PayBalanceAcivity;->tv_order_money:Landroid/widget/TextView;

    .line 228
    const v0, 0x7f070015

    invoke-virtual {p0, v0}, Lcom/example/m6shop/PayBalanceAcivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/example/m6shop/PayBalanceAcivity;->tv_also_pay_money:Landroid/widget/TextView;

    .line 229
    const v0, 0x7f07001f

    invoke-virtual {p0, v0}, Lcom/example/m6shop/PayBalanceAcivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/example/m6shop/PayBalanceAcivity;->tv_sure_pay:Landroid/widget/TextView;

    .line 230
    const v0, 0x7f07001d

    invoke-virtual {p0, v0}, Lcom/example/m6shop/PayBalanceAcivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/example/m6shop/PayBalanceAcivity;->tv_acount_cost:Landroid/widget/TextView;

    .line 234
    iget-object v0, p0, Lcom/example/m6shop/PayBalanceAcivity;->tv_sure_pay:Landroid/widget/TextView;

    new-instance v1, Lcom/example/m6shop/PayBalanceAcivity$mOnclistener;

    invoke-direct {v1, p0, v2}, Lcom/example/m6shop/PayBalanceAcivity$mOnclistener;-><init>(Lcom/example/m6shop/PayBalanceAcivity;Lcom/example/m6shop/PayBalanceAcivity$mOnclistener;)V

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 236
    iget-object v0, p0, Lcom/example/m6shop/PayBalanceAcivity;->alipaylay:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v3}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 237
    iget-object v0, p0, Lcom/example/m6shop/PayBalanceAcivity;->weixinpaylay:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v3}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 238
    iget-object v0, p0, Lcom/example/m6shop/PayBalanceAcivity;->acoutpaylay:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v3}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 244
    return-void
.end method

.method private onClickListener()V
    .locals 3

    .prologue
    .line 552
    iget-object v0, p0, Lcom/example/m6shop/PayBalanceAcivity;->closebtn:Landroid/widget/ImageView;

    new-instance v1, Lcom/example/m6shop/PayBalanceAcivity$mOnclistener;

    const/4 v2, 0x0

    invoke-direct {v1, p0, v2}, Lcom/example/m6shop/PayBalanceAcivity$mOnclistener;-><init>(Lcom/example/m6shop/PayBalanceAcivity;Lcom/example/m6shop/PayBalanceAcivity$mOnclistener;)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 554
    return-void
.end method


# virtual methods
.method public acoutpayback(Ljava/lang/String;)V
    .locals 6
    .param p1, "result"    # Ljava/lang/String;

    .prologue
    const/4 v5, 0x0

    .line 476
    const-string v3, "PayBalanceACtivity"

    invoke-static {v3, p1}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 479
    :try_start_0
    new-instance v2, Lorg/json/JSONObject;

    invoke-direct {v2, p1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 481
    .local v2, "json":Lorg/json/JSONObject;
    const-string v3, "error"

    invoke-virtual {v2, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    const-string v4, "true"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_0

    .line 483
    const-string v3, "\u652f\u4ed8\u5931\u8d25"

    .line 484
    const/4 v4, 0x0

    .line 483
    invoke-static {p0, v3, v4}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v3

    .line 484
    invoke-virtual {v3}, Landroid/widget/Toast;->show()V

    .line 506
    .end local v2    # "json":Lorg/json/JSONObject;
    :goto_0
    return-void

    .line 486
    .restart local v2    # "json":Lorg/json/JSONObject;
    :cond_0
    const-string v3, "msg"

    invoke-virtual {v2, v3}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_1

    .line 487
    const-string v3, "\u652f\u4ed8\u5931\u8d25"

    .line 488
    const/4 v4, 0x0

    .line 487
    invoke-static {p0, v3, v4}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v3

    .line 488
    invoke-virtual {v3}, Landroid/widget/Toast;->show()V
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 501
    .end local v2    # "json":Lorg/json/JSONObject;
    :catch_0
    move-exception v0

    .line 503
    .local v0, "e":Lorg/json/JSONException;
    const-string v3, "\u652f\u4ed8\u5931\u8d25"

    invoke-static {p0, v3, v5}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v3

    .line 504
    invoke-virtual {v3}, Landroid/widget/Toast;->show()V

    goto :goto_0

    .line 490
    .end local v0    # "e":Lorg/json/JSONException;
    .restart local v2    # "json":Lorg/json/JSONObject;
    :cond_1
    :try_start_1
    const-string v3, "\u652f\u4ed8\u6210\u529f"

    .line 491
    const/4 v4, 0x0

    .line 490
    invoke-static {p0, v3, v4}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v3

    .line 491
    invoke-virtual {v3}, Landroid/widget/Toast;->show()V

    .line 493
    new-instance v1, Landroid/content/Intent;

    invoke-direct {v1}, Landroid/content/Intent;-><init>()V

    .line 494
    .local v1, "intent":Landroid/content/Intent;
    const/4 v3, 0x1

    invoke-virtual {p0, v3, v1}, Lcom/example/m6shop/PayBalanceAcivity;->setResult(ILandroid/content/Intent;)V

    .line 495
    invoke-virtual {p0}, Lcom/example/m6shop/PayBalanceAcivity;->finish()V
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_0
.end method

.method public aouctpay()Z
    .locals 1

    .prologue
    .line 444
    new-instance v0, Lcom/example/m6shop/PayBalanceAcivity$4;

    invoke-direct {v0, p0}, Lcom/example/m6shop/PayBalanceAcivity$4;-><init>(Lcom/example/m6shop/PayBalanceAcivity;)V

    .line 471
    invoke-virtual {v0}, Lcom/example/m6shop/PayBalanceAcivity$4;->start()V

    .line 472
    const/4 v0, 0x0

    return v0
.end method

.method public getpaydata()Z
    .locals 1

    .prologue
    .line 390
    new-instance v0, Lcom/example/m6shop/PayBalanceAcivity$3;

    invoke-direct {v0, p0}, Lcom/example/m6shop/PayBalanceAcivity$3;-><init>(Lcom/example/m6shop/PayBalanceAcivity;)V

    .line 439
    invoke-virtual {v0}, Lcom/example/m6shop/PayBalanceAcivity$3;->start()V

    .line 440
    const/4 v0, 0x0

    return v0
.end method

.method public initdata(Ljava/lang/String;)V
    .locals 9
    .param p1, "results"    # Ljava/lang/String;

    .prologue
    .line 247
    const-string v5, "\u8fd4\u56de\u6570\u636e1111111111111111111111111111"

    invoke-static {v5, p1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 249
    :try_start_0
    new-instance v3, Lorg/json/JSONObject;

    invoke-direct {v3, p1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 250
    .local v3, "json":Lorg/json/JSONObject;
    const-string v5, "alipay"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v5

    iput-object v5, p0, Lcom/example/m6shop/PayBalanceAcivity;->taodata:Lorg/json/JSONObject;

    .line 251
    const-string v5, "weixin"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v5

    iput-object v5, p0, Lcom/example/m6shop/PayBalanceAcivity;->weixindata:Lorg/json/JSONObject;

    .line 252
    const-string v5, "plate"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v5

    iput-object v5, p0, Lcom/example/m6shop/PayBalanceAcivity;->acountdata:Lorg/json/JSONObject;

    .line 254
    iget-object v5, p0, Lcom/example/m6shop/PayBalanceAcivity;->taodata:Lorg/json/JSONObject;

    const-string v6, "support"

    invoke-virtual {v5, v6}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    const-string v6, "1"

    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_0

    .line 255
    iget-object v5, p0, Lcom/example/m6shop/PayBalanceAcivity;->alipaylay:Landroid/widget/LinearLayout;

    const/4 v6, 0x0

    invoke-virtual {v5, v6}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 257
    :cond_0
    iget-object v5, p0, Lcom/example/m6shop/PayBalanceAcivity;->acountdata:Lorg/json/JSONObject;

    const-string v6, "support"

    invoke-virtual {v5, v6}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    const-string v6, "1"

    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_1

    .line 258
    const-string v5, "allcost"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Ljava/lang/Float;->valueOf(Ljava/lang/String;)Ljava/lang/Float;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/Float;->floatValue()F

    move-result v4

    .line 259
    .local v4, "waiddd":F
    iget-object v5, p0, Lcom/example/m6shop/PayBalanceAcivity;->acountdata:Lorg/json/JSONObject;

    const-string v6, "acountcost"

    invoke-virtual {v5, v6}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Ljava/lang/Float;->valueOf(Ljava/lang/String;)Ljava/lang/Float;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/Float;->floatValue()F

    move-result v0

    .line 260
    .local v0, "dajia":F
    cmpl-float v5, v0, v4

    if-lez v5, :cond_1

    .line 261
    iget-object v5, p0, Lcom/example/m6shop/PayBalanceAcivity;->acoutpaylay:Landroid/widget/LinearLayout;

    const/4 v6, 0x0

    invoke-virtual {v5, v6}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 262
    iget-object v5, p0, Lcom/example/m6shop/PayBalanceAcivity;->tv_acount_cost:Landroid/widget/TextView;

    new-instance v6, Ljava/lang/StringBuilder;

    const-string v7, "\u8d26\u53f7\u4f59\u989d:\uffe5"

    invoke-direct {v6, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 263
    iget-object v7, p0, Lcom/example/m6shop/PayBalanceAcivity;->acountdata:Lorg/json/JSONObject;

    const-string v8, "acountcost"

    invoke-virtual {v7, v8}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    .line 262
    invoke-virtual {v5, v6}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 266
    .end local v0    # "dajia":F
    .end local v4    # "waiddd":F
    :cond_1
    iget-object v5, p0, Lcom/example/m6shop/PayBalanceAcivity;->weixindata:Lorg/json/JSONObject;

    const-string v6, "support"

    invoke-virtual {v5, v6}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    const-string v6, "1"

    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_2

    .line 267
    iget-object v5, p0, Lcom/example/m6shop/PayBalanceAcivity;->weixinpaylay:Landroid/widget/LinearLayout;

    const/4 v6, 0x0

    invoke-virtual {v5, v6}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 270
    :cond_2
    iget-object v5, p0, Lcom/example/m6shop/PayBalanceAcivity;->tv_order_money:Landroid/widget/TextView;

    new-instance v6, Ljava/lang/StringBuilder;

    const-string v7, "\uffe5"

    invoke-direct {v6, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v7, "allcost"

    invoke-virtual {v3, v7}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 271
    iget-object v5, p0, Lcom/example/m6shop/PayBalanceAcivity;->tv_also_pay_money:Landroid/widget/TextView;

    new-instance v6, Ljava/lang/StringBuilder;

    const-string v7, "\uffe5"

    invoke-direct {v6, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v7, "allcost"

    invoke-virtual {v3, v7}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 272
    const v5, 0x7f070013

    invoke-virtual {p0, v5}, Lcom/example/m6shop/PayBalanceAcivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 273
    .local v1, "dordertitle":Landroid/widget/TextView;
    const-string v5, "titlename"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v1, v5}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 275
    const-string v5, "\u8fd4\u56de\u6570\u636e"

    invoke-static {v5, p1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    .line 282
    .end local v1    # "dordertitle":Landroid/widget/TextView;
    .end local v3    # "json":Lorg/json/JSONObject;
    :goto_0
    return-void

    .line 277
    :catch_0
    move-exception v2

    .line 279
    .local v2, "e":Lorg/json/JSONException;
    invoke-virtual {v2}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 5
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 95
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 96
    const v1, 0x7f030003

    invoke-virtual {p0, v1}, Lcom/example/m6shop/PayBalanceAcivity;->setContentView(I)V

    .line 97
    invoke-virtual {p0}, Lcom/example/m6shop/PayBalanceAcivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    check-cast v1, Lmyapp/MyApp;

    iput-object v1, p0, Lcom/example/m6shop/PayBalanceAcivity;->m:Lmyapp/MyApp;

    .line 98
    iget-object v1, p0, Lcom/example/m6shop/PayBalanceAcivity;->m:Lmyapp/MyApp;

    invoke-virtual {v1}, Lmyapp/MyApp;->getActivity()Ljava/util/ArrayList;

    move-result-object v1

    iput-object v1, p0, Lcom/example/m6shop/PayBalanceAcivity;->activities:Ljava/util/ArrayList;

    .line 99
    iget-object v1, p0, Lcom/example/m6shop/PayBalanceAcivity;->activities:Ljava/util/ArrayList;

    invoke-virtual {v1, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 100
    iput-object p0, p0, Lcom/example/m6shop/PayBalanceAcivity;->context:Landroid/content/Context;

    .line 102
    invoke-virtual {p0}, Lcom/example/m6shop/PayBalanceAcivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    .line 103
    .local v0, "intent":Landroid/content/Intent;
    const-string v1, "orderid"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/example/m6shop/PayBalanceAcivity;->order_id:Ljava/lang/String;

    .line 104
    const-string v1, "paytype"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/example/m6shop/PayBalanceAcivity;->paytype:Ljava/lang/String;

    .line 105
    const-string v1, "waitpay_cost"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/example/m6shop/PayBalanceAcivity;->waitpay_cost:Ljava/lang/String;

    .line 107
    invoke-direct {p0}, Lcom/example/m6shop/PayBalanceAcivity;->initView()V

    .line 109
    invoke-direct {p0}, Lcom/example/m6shop/PayBalanceAcivity;->onClickListener()V

    .line 110
    const-string v1, ""

    iput-object v1, p0, Lcom/example/m6shop/PayBalanceAcivity;->choice_pay_name:Ljava/lang/String;

    .line 112
    const-string v1, "wxc248ad180c555891"

    invoke-static {p0, v1}, Lcom/tencent/mm/sdk/openapi/WXAPIFactory;->createWXAPI(Landroid/content/Context;Ljava/lang/String;)Lcom/tencent/mm/sdk/openapi/IWXAPI;

    move-result-object v1

    iput-object v1, p0, Lcom/example/m6shop/PayBalanceAcivity;->api:Lcom/tencent/mm/sdk/openapi/IWXAPI;

    .line 114
    iget-object v1, p0, Lcom/example/m6shop/PayBalanceAcivity;->api:Lcom/tencent/mm/sdk/openapi/IWXAPI;

    const-string v2, "wxc248ad180c555891"

    invoke-interface {v1, v2}, Lcom/tencent/mm/sdk/openapi/IWXAPI;->registerApp(Ljava/lang/String;)Z

    .line 116
    const-string v1, "api------------------"

    new-instance v2, Ljava/lang/StringBuilder;

    iget-object v3, p0, Lcom/example/m6shop/PayBalanceAcivity;->api:Lcom/tencent/mm/sdk/openapi/IWXAPI;

    const-string v4, "wxc248ad180c555891"

    invoke-interface {v3, v4}, Lcom/tencent/mm/sdk/openapi/IWXAPI;->registerApp(Ljava/lang/String;)Z

    move-result v3

    invoke-static {v3}, Ljava/lang/String;->valueOf(Z)Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 118
    new-instance v1, Lcom/example/m6shop/PayBalanceAcivity$1;

    invoke-direct {v1, p0}, Lcom/example/m6shop/PayBalanceAcivity$1;-><init>(Lcom/example/m6shop/PayBalanceAcivity;)V

    sput-object v1, Lcom/example/m6shop/PayBalanceAcivity;->h:Landroid/os/Handler;

    .line 204
    invoke-virtual {p0}, Lcom/example/m6shop/PayBalanceAcivity;->getpaydata()Z

    .line 206
    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 3
    .param p1, "keyCode"    # I
    .param p2, "event"    # Landroid/view/KeyEvent;

    .prologue
    const/4 v2, 0x0

    .line 582
    const/4 v1, 0x4

    if-ne p1, v1, :cond_0

    invoke-virtual {p2}, Landroid/view/KeyEvent;->getRepeatCount()I

    move-result v1

    if-nez v1, :cond_0

    .line 583
    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    .line 584
    .local v0, "intent":Landroid/content/Intent;
    invoke-virtual {p0, v2, v0}, Lcom/example/m6shop/PayBalanceAcivity;->setResult(ILandroid/content/Intent;)V

    .line 586
    invoke-virtual {p0}, Lcom/example/m6shop/PayBalanceAcivity;->finish()V

    .line 589
    .end local v0    # "intent":Landroid/content/Intent;
    :cond_0
    return v2
.end method
